const BASE_URL='http://119.23.40.43:80'
export const myRequest = (options)=>{
	return new Promise((resolve,reject)=>{
		uni.request({
			url:BASE_URL+options.url,
			method:options.method || 'GET',
			data:options.data || {},
			success: (res)=>{				
				resolve(res)
			},
			fail: (err)=>{
				reject(err)
			}
		})
	})
}
export const myDoPost= (options)=>{
	return new Promise((resolve,reject)=>{
		uni.request({
			url:BASE_URL+options.url,
			method:options.method || 'POST',
			data:options.data || {},
			success: (res)=>{				
				resolve(res)
			},
			fail: (err)=>{
				reject(err)
			}
		})
	})
}